package com.yonyou.pmclouds.team.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseRefVO;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseVO;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseViewVO;
import com.yonyou.pmclouds.team.entity.TeamToPersonnelVO;

import java.util.List;

public interface TeamEnterpriseQuery {
    int countProjectEnterprise(String projectid) throws BusinessException;

    TeamEnterpriseVO[] queryByProject(String projectid) throws BusinessException;

    TeamEnterpriseRefVO[] queryConstructionUnitInProject(String projectid) throws BusinessException;

    /**
     * 获取监理单位
     */
    TeamEnterpriseRefVO[] querySupervisionUnitInProject(String projectid) throws BusinessException;


    TeamEnterpriseRefVO[] queryConstructionUnitInProjects(String[] projectids) throws BusinessException;

    /**
     * 获取监理单位
     */
    TeamEnterpriseRefVO[] querySupervisionUnitInProjects(String[] projectids) throws BusinessException;



    TeamEnterpriseVO[] queryByIds(String[] ids) throws BusinessException;

    TeamEnterpriseViewVO[] queryEnterpriseViewVOsByProject(String projectid) throws BusinessException;

    TeamEnterpriseVO[] queryByProjects(String [] pkProjects) throws BusinessException;

    TeamEnterpriseVO[] queryByPkEnts(String [] pkEnts) throws BusinessException;

    /**
     * 根据项目查询施工单位
     *
     * @param pkProject
     * @param pkTenant
     * @return
     * @throws BusinessException
     */
    List<TeamEnterpriseVO> queryConstructEnterByProject(String pkProject, String pkTenant) throws BusinessException;

    List<TeamToPersonnelVO> queryEntAndUserByTenant(String pkTenant) throws BusinessException;
}
